package com.wyx.rtddels.controller;

import com.wyx.rtddels.service.ExportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author WYX
 * @date 2024/12/3
 * @Description  导出工具类 将数据写入到csv文件
 */
@RestController
@RequestMapping("export")
public class ExportController {
    @Resource
    ExportService exportService;

    @GetMapping(value = "/csv",name = "根据csv文件导出接口")
    public void exportCsv(){
        //导出csv 文件
        exportService.ExportCsv();
    }
}
